EXAMPLE DEFINITIONS ::= BEGIN

IMPORTS

    TruthValue, RowStatus
			FROM SNMPv2-TC
	
    MODULE-IDENTITY, OBJECT-TYPE, enterprises, Integer32, NOTIFICATION-TYPE
        FROM SNMPv2-SMI;




example MODULE-IDENTITY
     LAST-UPDATED "200205281700Z"
     ORGANIZATION "NetSilicon"
     CONTACT-INFO 
         "Aaron Kurland - Engineering
         
         Postal: 411 Waverly Oaks Road, #227
                 Waltham, MA 02452
                 US
                 
             Tel: 781-647-1234
             Fax: 781-893-1338
             
             WEB: www.netsilicon.com"
     DESCRIPTION  "Example MIB module"
     REVISION     "200205281700Z" 
     DESCRIPTION  "Rev. 1.0 - initial version"
     ::= { enterprises 901 }


-- The following statement defines NetSilicon's Enterprise Identifier.  You
-- should replace this with your own when you create new MIBs.  You can get
-- an enterprise identifer from the Internet Assigned Numbers Authority.  
-- Contact them at:
--
-- Address: IANA
--          USC/Information Sciences Institute
--          4676 Admiralty Way
--          Marina del Rey, CA 90292
--      
-- Phone:   +1 (310) 822-1511
-- FAX:     +1 (310) 823-6714
-- 
-- Email:   iana-mib@isi.edu        (for enterprise identifiers)
--          iana@isi.edu            (for anything else)
--
-- URL:     http://www.iana.org/iana

nsil             OBJECT IDENTIFIER ::= { example 999 }


-- The next few declarations just subdivide our address space into
-- different sections.

exampleOne       OBJECT IDENTIFIER ::= { nsil 1 }

-- Now define a group and a table 

group           OBJECT IDENTIFIER ::= {exampleOne 1}
table           OBJECT IDENTIFIER ::= {exampleOne 2}
traps			OBJECT IDENTIFIER ::= {exampleOne 3}

-- scalar items

    greenLedOn OBJECT-TYPE

        SYNTAX  TruthValue 
        MAX-ACCESS  read-write
        STATUS  current
        DESCRIPTION
            "This object is used to control the state of the green LED"
        DEFVAL { true }
        ::= {group 1 }


    yellowLedOn OBJECT-TYPE

        SYNTAX  TruthValue 
        MAX-ACCESS  read-write
        STATUS  current
        DESCRIPTION
            "This object is used to control the state of the yellow LED"
        DEFVAL { false }
        ::= {group 2 }


    bigBoss OBJECT-TYPE

        SYNTAX  OCTET STRING 
        MAX-ACCESS  read-write
        STATUS  current
        DESCRIPTION
            "String with default value 'Bruce'"
        DEFVAL  {"Bruce"}
        ::= {group 3 }


    simpleTable OBJECT-TYPE
      SYNTAX  SEQUENCE OF SimpleEntry
      MAX-ACCESS  not-accessible
      STATUS  current
      DESCRIPTION
              "A list of names"
      ::= { table 1 }


    simpleEntry OBJECT-TYPE
        SYNTAX  SimpleEntry
        MAX-ACCESS  not-accessible
        STATUS  current
        DESCRIPTION
              "Row definition for the simple table"
        INDEX   { index }
        ::= { simpleTable 1 }
   


    SimpleEntry ::=
        SEQUENCE {
          index		Integer32,
		  rowStatus	RowStatus,
          name		OCTET STRING,
        }


    index OBJECT-TYPE
        SYNTAX  Integer32(1..100)
        MAX-ACCESS  read-only
        STATUS  current
        DESCRIPTION
              "Index for table"
        ::= { simpleEntry 1 }

	rowStatus OBJECT-TYPE
		SYNTAX RowStatus
		MAX-ACCESS read-create
		STATUS current
		DESCRIPTION
		   "used for creating, modifying and deleting rows
			in the table"
		DEFVAL { active }
		::= { simpleEntry 2 }


    name OBJECT-TYPE
        SYNTAX  OCTET STRING
        MAX-ACCESS  read-write
        STATUS  current
        DESCRIPTION
              "Somebody's name"
        ::= { simpleEntry 3 }

	exampleTrapGreen NOTIFICATION-TYPE
		OBJECTS { greenLedOn }
		STATUS current
		DESCRIPTION 
			"Reports greenLedOn value"
		::= {traps 1 }

	exampleTrapYellow NOTIFICATION-TYPE
		OBJECTS { yellowLedOn }
		STATUS current
		DESCRIPTION 
			"Reports yellowLedOn value"
		::= {traps 2 }


	END
